package com.zhaodi.mybatisflexdemo.controller;

import com.zhaodi.mybatisflexdemo.entity.Result;
import com.zhaodi.mybatisflexdemo.entity.dto.TImeDemo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/time")
@Slf4j
public class TimeController {

    @PostMapping("/test")
    public Result test(@RequestBody TImeDemo tImeDemo){
        log.info("tImeDemo:{}",tImeDemo);
        return Result.Success(tImeDemo);
    }
}
